package com.ssy.lingxi.platform.manage.api.hystrix.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.paas.LanguagePAASControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.language.LanguagePAASDTO;
import org.springframework.stereotype.Component;

@Component
public class LanguagePAASControllerFeignFallback implements LanguagePAASControllerFeign {

    @Override
    public Wrapper<?> add(LanguagePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> update(LanguagePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> state(LanguagePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<?> delete(LanguagePAASDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

}
